package com.wl4837;

import java.util.HashMap;
import java.util.Map;

public class Context {

    private final Map<String, Integer> variables = new HashMap<>();

    public void assign(String var, int value) {
        variables.put(var, value);
    }

    public int lookup(String var) {
        return variables.getOrDefault(var, 0);
    }

}